package cn.monkey.family.server.domain.uc.auth;

import cn.monkey.family.data.Result;
import cn.monkey.family.data.uc.auth.AuthRequest;
import cn.monkey.family.data.uc.auth.Authorization;
import cn.monkey.family.data.context.RequestContext;

public interface IAuthService {

    Result<Authorization> authorize(RequestContext requestContext, AuthRequest authRequest);

    Result<Void> clearAuth(RequestContext requestContext);

    Result<String> newTemporaryToken(RequestContext requestContext);
}
